<%@ Control Language="C#" %>
<%@ Register TagPrefix="CS" Namespace="CommunityServer.Controls" Assembly="CommunityServer.Controls" %>
<%@ Register TagPrefix="CSD" Namespace="CommunityServer.Discussions.Controls" Assembly="CommunityServer.Discussions" %>
<%@ Import Namespace="CommunityServer.Components" %>
<%@ Import Namespace="CommunityServer.Controls" %>
<%@ Import Namespace="CommunityServer.Discussions.Components" %>
<%@ Import Namespace="CommunityServer.Discussions.Controls" %>
<div class="CommonContentArea">
	<div class="CommonBreadCrumbArea"><CSD:BreadCrumb ShowHome="true" runat="server" id="Breadcrumb1"/></div>
	<h2 class="CommonTitle"><asp:Label id="ForumName" Runat="server" /></h2>
	<div class="CommonContent">
		<div class="CommonDescription"><asp:Label CssClass="h2Desc" id="ForumDescription" Runat="server" /></div>

		<div class="CommonListArea">
			<h4 class="CommonListTitle" align="left" colspan="3"><asp:Literal runat="server" id="UsersOnlineCount" /></h4>
			<asp:Repeater runat="server" id="MembersOnlineRepeater">
				<HeaderTemplate>
					<table cellpadding="0" cellspacing="0" border="0" width="100%">
						<thead>
							<tr> 
								<th class="CommonListHeaderLeftMost" align="center" nowrap="true"><CS:ResourceLabel runat="server" ResourceName="WhoIsOnlineView_List_Username" id="Resourcelabel1" NAME="Resourcelabel1"/></th>
								<th class="CommonListHeader" align="center" nowrap="true"><CS:ResourceLabel runat="server" ResourceName="WhoIsOnlineView_List_LastUpdated" id="Resourcelabel2" NAME="Resourcelabel2"/></th>
								<th class="CommonListHeader" align="center"><CS:ResourceLabel runat="server" ResourceName="WhoIsOnlineView_List_ForumLocation" id="Resourcelabel3" NAME="Resourcelabel3"/></th>
							</tr>
						</thead>
						<tbody>
				</HeaderTemplate>
				<ItemTemplate>
						<tr>
							<td class="CommonListCellLeftMost">
								<a href='<%# Globals.GetSiteUrls().UserProfile( (string) (DataBinder.Eval(Container.DataItem, "Username")) ) %>'><%# DataBinder.Eval(Container.DataItem, "User.DisplayName") %></a>
							</td>
							<td class="CommonListCell" align="center">
								<%# Formatter.FormatDate( (DateTime) DataBinder.Eval(Container.DataItem, "LastActivity"), true ) %>
							</td>
							<td class="CommonListCell" align="left">
								&nbsp; <CS:LiteralOrLink runat = "Server" Text = '<%# DataBinder.Eval(Container.DataItem, "Location") %>' NavigateUrl = '<%# DataBinder.Eval(Container.DataItem, "Link") %>' />
							</td>
						</tr>
				</ItemTemplate>	
				<AlternatingItemTemplate>
						<tr>
							<td class="CommonListCellLeftMost">
								<a href='<%# Globals.GetSiteUrls().UserProfile( (string) (DataBinder.Eval(Container.DataItem, "Username")) ) %>'><%# DataBinder.Eval(Container.DataItem, "User.DisplayName") %></a>
							</td>
							<td class="CommonListCell" align="center">
								<%# Formatter.FormatDate( (DateTime) DataBinder.Eval(Container.DataItem, "LastActivity"), true ) %>
							</td>
							<td class="CommonListCell" align="left">
								&nbsp; <CS:LiteralOrLink runat = "Server" Text = '<%# DataBinder.Eval(Container.DataItem, "Location") %>' NavigateUrl = '<%# DataBinder.Eval(Container.DataItem, "Link") %>' />
							</td>
						</tr>
				</AlternatingItemTemplate>  
				<FooterTemplate>
					</tbody>
					</table>
				</FooterTemplate>
			</asp:Repeater>
		</div>
		
		<div class="CommonListArea">
			<h4 class="CommonListTitle" align="left" colspan="2"><asp:Literal runat="server" id="GuestUsers" /></h4>
			<asp:Repeater runat="server" id="GuestsOnlineRepeater">
				<HeaderTemplate>
					<table cellpadding="0" cellspacing="0" border="0" width="100%">
						<thead>
							<tr> 
								<th class="CommonListHeader" align="center" nowrap="true"><CS:ResourceLabel runat="server" ResourceName="WhoIsOnlineView_List_LastUpdated" id="Resourcelabel5" NAME="Resourcelabel2"/></th>
								<th class="CommonListHeader" align="center"><CS:ResourceLabel runat="server" ResourceName="WhoIsOnlineView_List_ForumLocation" id="Resourcelabel6" NAME="Resourcelabel3"/></th>
							</tr>
						</thead>
						<tbody>
				</HeaderTemplate>
				<ItemTemplate>
						<tr>
							<td class="CommonListCellLeftMost">
								<%# Formatter.FormatDate( (DateTime) DataBinder.Eval(Container.DataItem, "LastActivity"), true ) %>
							</td>
							<td class="CommonListCell" align="left">
							    <CS:LiteralOrLink runat = "Server" Text = '<%# DataBinder.Eval(Container.DataItem, "Location") %>' NavigateUrl = '<%# DataBinder.Eval(Container.DataItem, "Link") %>' />
							</td>
						</tr>
				</ItemTemplate>
				<AlternatingItemTemplate>
						<tr>
							<td class="CommonListCellLeftMost">
								<%# Formatter.FormatDate( (DateTime) DataBinder.Eval(Container.DataItem, "LastActivity"), true ) %>
							</td>
							<td class="CommonListCell" align="left">
								<CS:LiteralOrLink runat = "Server" Text = '<%# DataBinder.Eval(Container.DataItem, "Location") %>' NavigateUrl = '<%# DataBinder.Eval(Container.DataItem, "Link") %>' />
							</td>
						</tr>
				</AlternatingItemTemplate>
				<FooterTemplate>
					</tbody>
					</table>
				</FooterTemplate>
			</asp:Repeater>
		</div>
	</div>
</div>